import React, {PureComponent} from 'react'
import PropTypes from 'prop-types'
import Echarts from '../../widgets/echarts'
import screen from '../../utils/screen'

export default class extends PureComponent {
  static propTypes: {
    options: PropTypes.any
  }

  constructor(props) {
    super(props)
  }

  render() {
    const { options } = this.props;
    return (
        <Echarts option={options} height={screen.pxToDp(500)} />
    )
  }
}
